package zhongbo.java.air.dictionary.model.entities;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import zhongbo.java.air.common.enums.ZoneType;

import java.util.Date;

/**
 * @author WeiJin
 * @version 1.0
 * @date 2025/3/31 10:14
 */
@Data
@TableName("air_alert_zone")
@ApiModel("警戒区域配置")
public class AlertZone {
    @ApiModelProperty("UUID 主键")
    private String id;

    @ApiModelProperty(value = "区域业务编号（如 BJ_NOFLY_001）", example = "BJ_NOFLY_001")
    private String zoneCode;

    @ApiModelProperty(value = "区域类型（枚举值：NO_FLY-禁飞区, RESTRICTED-限制区, TEMPORARY-临时区）", example = "NO_FLY")
    private ZoneType zoneType;

    @ApiModelProperty("多边形顶点坐标（JSON格式：[{\"lat\":39.9,\"lng\":116.3},...]）")
    private String vertices;

    @ApiModelProperty(value = "生效开始时间", example = "2025-04-01")
    private Date effectiveStart;

    @ApiModelProperty(value = "生效结束时间（NULL表示永久有效）", example = "2025-04-05")
    private Date effectiveEnd;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;
}
